from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def dian1(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().className("android.widget.ImageView").instance(19)')
        ele=self.find_ele(loc)
        return ele
    def djtp2(self):
        loc=(By.ID,'com.achievo.vipshop:id/name_1')
        ele=self.find_ele(loc)
        return ele
    def dj3(self):
        loc=(By.XPATH,'(//android.widget.RelativeLayout[@resource-id="com.achievo.vipshop:id/image_main_layout"])[1]/android.widget.FrameLayout')
        ele=self.find_ele(loc)
        return ele
    def sc4(self):
        loc=(By.ID,'com.achievo.vipshop:id/img')
        ele=self.find_ele(loc)
        return ele
    def dy(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搭配")')
        ele=self.find_ele(loc)
        return ele
